package com.xuecheng.feignclient;

import com.xuecheng.dto.CourseIndexDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 搜索服务远程调用接口
 */
@FeignClient(value = "search", fallbackFactory = SearchServiceClientFallbackFactory.class)
@RequestMapping("/search")
public interface SearchServiceClient {
	
	@PostMapping("/index/course")
	Boolean add(@RequestBody CourseIndexDTO courseIndexDTO);
	
}
